package inventory.view;

import javax.swing.JFrame;
import javax.swing.SpringLayout;
import javax.swing.JSeparator;
import javax.swing.JToolBar;
import javax.swing.border.BevelBorder;
import java.awt.Button;

public class InventoryDriverDiscarded extends JFrame {
	private Button btnMaster;
	private Button btnInward;
	private Button btnOutward;
	private Button btnReport;
	private Button btnRevert;
	public InventoryDriverDiscarded() {
		SpringLayout springLayout = new SpringLayout();
		getContentPane().setLayout(springLayout);
		
		JSeparator separator = new JSeparator();
		springLayout.putConstraint(SpringLayout.NORTH, separator, 50, SpringLayout.NORTH, getContentPane());
		springLayout.putConstraint(SpringLayout.WEST, separator, 0, SpringLayout.WEST, getContentPane());
	
		springLayout.putConstraint(SpringLayout.EAST, separator, -0, SpringLayout.EAST, getContentPane());
		getContentPane().add(separator);
		
		JToolBar toolBar = new JToolBar();
		springLayout.putConstraint(SpringLayout.NORTH, toolBar, 40, SpringLayout.NORTH, separator);
		springLayout.putConstraint(SpringLayout.SOUTH, toolBar, 94, SpringLayout.NORTH, separator);
		toolBar.setBorder(new BevelBorder(BevelBorder.RAISED, null, null, null, null));
		toolBar.setFloatable(false);
		springLayout.putConstraint(SpringLayout.WEST, toolBar, 0, SpringLayout.WEST, getContentPane());
		springLayout.putConstraint(SpringLayout.EAST, toolBar, -0, SpringLayout.EAST, getContentPane());
		getContentPane().add(toolBar);
		
		btnMaster = new Button("MASTER");
		toolBar.add(btnMaster);
		
		btnInward = new Button("INWARD");
		toolBar.add(btnInward);
		
		btnOutward = new Button("OUTWARD");
		toolBar.add(btnOutward);
		
		btnReport = new Button("REPORTS");
		toolBar.add(btnReport);
		
		btnRevert = new Button("REVERT");
		toolBar.add(btnRevert);
		
		JSeparator separator_1 = new JSeparator();
		
		springLayout.putConstraint(SpringLayout.WEST, separator_1,0, SpringLayout.WEST, getContentPane());
		springLayout.putConstraint(SpringLayout.SOUTH, separator_1, -50, SpringLayout.SOUTH, getContentPane());
		springLayout.putConstraint(SpringLayout.EAST, separator_1, 0, SpringLayout.EAST, getContentPane());
		getContentPane().add(separator_1);
	}
}
